import Vue from 'vue'
import Router from 'vue-router'
import HomeContainer from '../components/tabber/HomeContainer.vue'
import MemberContainer from '../components/tabber/MemberContainer.vue'
import SearchContainer from '../components/tabber/SearchContainer.vue'
import ShopcarContainer from '../components/tabber/ShopcarContainer.vue'
import newslist from '../components/news/newslist.vue'
import newsinfo from '../components/news/newsinfo.vue'
import photoList from '../components/photos/photoList.vue'
import goodList from '../components/goodlist/goodList.vue'
import goodsInfo from '../components/goodlist/goodsinfo.vue'
import goodsDesc from '../components/goodlist/goodsDesc.vue'
import goodscomment from '../components/goodlist/goodscomment.vue'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'App',
    //   component: App
    // }},
    { path: '/', redirect: '/home' },
    { path: '/home', component: HomeContainer },
    { path: '/member', component: MemberContainer },
    { path: '/shopcar', component: SearchContainer },
    { path: '/search', component: ShopcarContainer },
    {path:'/home/newslist',component:newslist},
    {path:'/home/newsinfo/:id',component:newsinfo},
    {path:'/home/photoList',component:photoList},
    {path:'/home/goodlist',component:goodList},
    {path:'/home/goodsinfo/:id',component:goodsInfo,name:'goodsinfo'},
    {path:'/home/goodsDesc/:id',component:goodsDesc,name:'goodsdesc'},
    {path:'/home/goodscomment/:id',component:goodscomment,name:'goodscomment'}
  ],
  linkActiveClass: 'mui-active'
})
